package model;

public class Figure {
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */

	String path;
	int color_id;
	public Figure(String path, int color_id) {
		super();
		this.path = path;
		this.color_id = color_id;
	}
	/**
	 * @return the path
	 */
	public String getPath() {
		return path;
	}
	/**
	 * @return the color_id
	 */
	public int getColor_id() {
		return color_id;
	}
	@Override
	public String toString() {
		return "Figure [path=" + path + ", color_id=" + color_id + "]";
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((path == null) ? 0 : path.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Figure other = (Figure) obj;
		if (path == null) {
			if (other.path != null)
				return false;
		} else if (!path.equals(other.path))
			return false;
		return true;
	}
	
	
}
